﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Data.SqlClient;
using System.Text;

public partial class archive1 : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblError.Text = "";
    }
    protected void btnArchive1_Click(object sender, EventArgs e)
    {
        SqlCommand cmd = new SqlCommand();
        cmd.CommandText = "core_daily_archive";
        int i;
        i = TinyDAL.Exec(ref cmd);
        if (i == 0)
            lblError.Text = "Done!";
        else
            lblError.Text = "Error:" + i.ToString();
    }
}
